﻿@{
    
}
@section head{
    <title>手机短信</title>
}
@section content{

    <div id="pageflag" data-nav="index" data-ban="pub"></div>
    <div class="container margin_t5">
        <ol class="breadcrumb">
            <li><a title="会员中心" href="@Url.Action("Default","")">会员中心</a></li>
            <li><a href="@Url.Action("Message", "Message")">消息中心</a></li>
            <li class="active">手机短信</li>
        </ol>
    </div>
    <div class="container">
        @Html.Partial("MessageTop")
    </div>
    @*<%ZoomLa.Common.function.WriteErrMsg("功能关闭,请联系管理员开启"); %>*@
    <form>
        <div class="container margin_t10 btn_green">
            <table class="table table-bordered table-striped">
                <tr>
                    <td class="td_l text-right">接收方手机号码：</td>
                    <td>
                        <table id="TblAddMessage" width="100%" visible="true" runat="server">
                            <tr>
                                <td>
                                    <input type="text" id="txtinceptuser" name="txtinceptuser" width="326" class="form-control required  phone" />
                                    一次只能发给一个号码一条短信
                                    @*<asp:RegularExpressionValidator ControlToValidate="TxtInceptUser" ID="rev1" runat="server" ValidationExpression="^1\d{10}$">手机号码有误，请重新输入！</asp:RegularExpressionValidator>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="TxtInceptUser" runat="server">手机号码不能为空 </asp:RequiredFieldValidator>*@
                                </td>
                                <td></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="text-right">
                        短信内容：<br />
                        (字数70个字以内)
                    </td>
                    <td>
                        <textarea id="editorcontent" name="editorcontent" style="max-width:500px;" class="form-control required" rows="10" placeholder="短消息内容不能为空"></textarea>
                    </td>
                </tr>
                <tr><td class="text-right">发送结果</td><td><label id="result_l"></label></td></tr>
                <tr>
                    <td></td>
                    <td>
                        @*<asp:Button ID="BtnReset" runat="server" Text="清除" OnClientClick="return CheckIsMobile(document.getElementById('TxtInceptUser').value)" OnClick="BtnReset_Click" class="btn btn-primary" />
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" />*@
                        <button id="btnsend" onclick="BtnSend_Click" class="btn btn-primary">发送</button>
                        <button id="btnreset" onclick="BtnReset_Click" class="btn btn-primary">清除</button>
                    </td>
                </tr>
            </table>
            <div class="alert alert-success">
                <label id="lblmobile" style="color: Red;">Label</label>
                <i class="fa fa-lightbulb-o"></i> 提示：系统支持以Mobile?MB=[手机号码]&txt=[发送内容]方式GET将手机号码传值发送，如：Mobile?MB=13177777714&txt=默认短信内容。
            </div>
        </div>
    </form>
}
@section script{
    <script>
        $("form").validate()
    </script>
}
